package com.qingcloud.fexecutor.base.handler;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;


@Getter
@Setter
@ApiModel("API调试请求参数对象")
public class ApiRequestParam {

    @ApiModelProperty(value = "Api Id", example = "")
    private Integer apiId;

    @ApiModelProperty("API名称")
    private String name;

    @ApiModelProperty("API地址")
    private String url;

    @ApiModelProperty("API类型 1-静态API,2-动态API")
    private Integer type;

    @ApiModelProperty("请求方法")
    private String method;

    @ApiModelProperty(value = "脚本内容", example = "")
    private String script;

    @ApiModelProperty(value = "数据源ID", example = "")
    private Integer dsId;

    @ApiModelProperty(value = "Head 参数")
    private List<ApiParamDTO> headParam = new ArrayList<>();

    @ApiModelProperty(value = "Body Json字符串", example = "")
    private String apiBodyJson;

    @ApiModelProperty(value = "Query 参数")
    private List<ApiParamDTO> queryParam = new ArrayList<>();

    @ApiModelProperty(value = "表单参数")
    private List<ApiParamDTO> formParam = new ArrayList<>();

    @ApiModelProperty(value = "PATH参数")
    private List<ApiParamDTO> pathParam = new ArrayList<>();
}
